.class Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$1;
.super Lcom/burstly/lib/network/request/CurrencyRequestTask;
.source "RequestLinkAccountRunnable.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/lib/network/request/CurrencyRequestTask",
        "<",
        "Lcom/burstly/lib/currency/request/AccountInfoResponse;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;


# direct methods
.method constructor <init>(Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;Ljava/lang/Object;Ljava/lang/Class;)V
    .locals 0
    .parameter
    .parameter "x0"
    .parameter

    .prologue
    .line 100
    .local p3, x1:Ljava/lang/Class;,"Ljava/lang/Class<Lcom/burstly/lib/currency/request/AccountInfoResponse;>;"
    iput-object p1, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$1;->this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;

    invoke-direct {p0, p2, p3}, Lcom/burstly/lib/network/request/CurrencyRequestTask;-><init>(Ljava/lang/Object;Ljava/lang/Class;)V

    return-void
.end method


# virtual methods
.method protected getDataToPost()Ljava/lang/String;
    .locals 9

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 103
    iget-object v2, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$1;->this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;

    iget-object v3, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$1;->this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;

    iget-object v3, v3, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->mNewAccount:Lcom/burstly/lib/currency/AccountInfo;

    invoke-virtual {v2, v3}, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->prepareRequest(Lcom/burstly/lib/currency/AccountInfo;)Lcom/burstly/lib/currency/request/LinkAccountRequest;

    move-result-object v0

    .line 104
    .local v0, requestData:Lcom/burstly/lib/currency/request/LinkAccountRequest;
    sget-object v2, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v3, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->TAG:Ljava/lang/String;

    const-string v4, "Linking account {0} to account {1}"

    const/4 v5, 0x2

    new-array v5, v5, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$1;->this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;

    iget-object v6, v6, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->mAccount:Lcom/burstly/lib/currency/UserAccount;

    invoke-virtual {v6}, Lcom/burstly/lib/currency/UserAccount;->getUserId()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v7

    iget-object v6, p0, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$1;->this$0:Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;

    iget-object v6, v6, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->mNewAccount:Lcom/burstly/lib/currency/AccountInfo;

    invoke-virtual {v6}, Lcom/burstly/lib/currency/AccountInfo;->getUserId()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v8

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 105
    new-instance v2, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;

    invoke-direct {v2}, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;-><init>()V

    invoke-virtual {v2, v0}, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->setData(Ljava/lang/Object;)Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/currency/secured/SecuredRequestBuilder;->buildLinkAccountRequest()Lcom/burstly/lib/currency/secured/SecuredServiceRequest;

    move-result-object v1

    .line 106
    .local v1, toPOst:Lcom/burstly/lib/currency/secured/SecuredServiceRequest;
    sget-object v2, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v3, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable;->TAG:Ljava/lang/String;

    const-string v4, "LinkAccountsRequest object is : {0}"

    new-array v5, v8, [Ljava/lang/Object;

    aput-object v0, v5, v7

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 107
    invoke-virtual {p0, v1}, Lcom/burstly/lib/currency/request/RequestLinkAccountRunnable$1;->setRequest(Ljava/lang/Object;)V

    .line 108
    invoke-super {p0}, Lcom/burstly/lib/network/request/CurrencyRequestTask;->getDataToPost()Ljava/lang/String;

    move-result-object v2

    return-object v2
.end method
